import 'package:base_flutter/base_flutter.dart';
class NetTimeModel extends BaseMvvmModel{
  @override
  void onCleared() {
  }

  Future<DateTime> nowTime() async {
    var url = "https://worldtimeapi.org/api/timezone/Asia/Shanghai";
    var data = await HttpGo.instance.getData(url);
    var dateTime = data['datetime'];
    return DateTime.parse(dateTime);
  }

}